<?php

namespace App\Http\Requests\Admin;


class GoodsRequest extends FormRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'goodsName' => [
                'required'
            ],
          
            'goodsImage' => [
                'required'
            ]
            
        ];
    }

    public function messages()
    {
        return [
            'goodsName.required' => '请输入商品名称',
            'goodsImage.required' => '请上传商品图片',
            
        ];
    }
}
